package ooday05;

public abstract class Animal {
    String name;
    int age;
    String colour;
    Animal(String name,int age,String colour){
        this.age=age;
        this.colour=colour;
        this.name=name;
    }
    abstract void eat();
    void drink(){
        System.out.println(colour+"色的"+name+"正在喝水，他今年"+age+"岁了");
    }
}
